Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task/WC-21 - Digital Rocks Cover Image Upload #1063

Merged
merged 5 commits into from
Feb 24, 2025

Conversation

shayanaijaz
Copy link
Contributor

Overview

Added functionality to upload a cover image for a project. Cover image is displayed using tapis postits

Related

Changes

  • Added support for cover image and made changes to show cover image with project metadata
  • Updated endpoints for creating and patching project to use FormData in order to support file uploads

Testing

  1. Update settings_forms.py with the new form fields
  2. Create a new Dataset and choose a valid cover image
  3. Ensure link to cover image is displayed after creation
  4. Edit Dataset and change the cover image and ensure changes persist

UI

Screenshot 2025-02-21 at 5 01 37 PM Screenshot 2025-02-21 at 5 01 51 PM

Notes

- User can choose a cover image to upload when creating a project
- Added file processing function for cover image
- Updated project post and patch requests to accept multipart/form-data
- File is served to user as a tapis postit
@shayanaijaz shayanaijaz merged commit 056b184 into task/digital-rocks Feb 24, 2025
0 of 4 checks passed
@shayanaijaz shayanaijaz deleted the task/WC-21--DRP-Project-Cover-Image branch February 24, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant